<template>
  <div class="app-common-title">
    <div class="line"></div>
    <div class="title ml10"><slot name="title" /></div>
    <div class="sub-title ml10"><slot name="subTitle" /></div>
  </div>
</template>

<script lang="ts" setup>
const props = defineProps({
  lineColor: {
    type: String,
    default: "#1891FF",
  },
});
</script>

<style lang="scss" scoped>
.app-common-title {
  display: flex;
  height: 30px;
  align-items: center;
  .line {
    background-color: v-bind(lineColor);
    width: 3px;
    height: 16px;
  }
  .title{
    font-size: 18px;
    color: #fff;
  }
  .sub-title{
    font-size: 13px;
    color: #D2D2D2;
    line-height: 24px;
  }
}
</style>
